<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>
<script>
function addorder()
{
	$('#addstorageform').modal('show');	
}

function getshopName()
{
	var platformID = $("#platformID").val();
	
	if(platformID)
	{
		 $.post("/orderlist/ajaxbutton", {"op": "getshoplist", "platformID": platformID},
		 function (data) {
			 if(data)
			 {
				 var tmp="<option value=''>店铺</option>";
				 for (var i = 0; i < data.length; i++) {
                    tmp += '<option value='+data[i].id+'>'+data[i].name+'</option>'
					
                }
				$("#shopname").html(tmp);
			 }
		}, "json");
	}
}
function showMoreInfo(tag){
	var action=$("#"+tag).find(".funa").html();
	//alert(action);
	if(action=='收起详细'){
		$("#"+tag).find(".show").removeClass("show").addClass("tr_more");
		$("#"+tag).find(".funa").html('显示详细');
	}else{
		$("#"+tag).find(".tr_more").removeClass("tr_more").addClass("show");
		$("#"+tag).find(".funa").html('收起详细');
	}
	
}
</script>
<title>店铺销售综合统计</title>
<style type="text/css">
	.stdtable tbody tr td{padding:3px 5px;}
	.redstyle{color:#FF0000 !important;font-weight:bold;}
	.goodsdata tr td{font-size:12px;}
	.tr_more{display:none};
	.show{display:block;}
</style>
<body class="withvernav">
{{include file='/public/leftmenu.tpl'}}
    <div class="pageheader notab">
      <h1 class="pagetitle">店铺综合统计</h1>
      <span class="pagedesc"></span>
       <div class="menulist">
		&nbsp;
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
          <!--搜索栏--> 
<form class="stdform stdform2" method="get" action="/report/fbaShopSells">
    <div style="" class="tableoptions">
    	<input type="hidden" name="op" id="op" value="saleCounts">
      <div style="line-height:28px;">
      导入时间：<input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> 
<span id="choose_shop_btn" style="border:1px solid #ccc;padding:6px 5px 7px;border-radius:3px;cursor:pointer;" onClick="getShopList()">选择店铺 <img src="/fuman/images/search_down.png" width="14" height="21" align="absmiddle" style="margin-bottom:-4px;"></span>
    <span id="search_list">{{$shopname|getstr:48:0}}</span>
    <input name="shopname" id="shopname" type="hidden" value="{{$shopname}}" />
    <input type="hidden" name="fbastate" id="fbastate" value="0">
    <button class="btn btn_orange btn_search radius50">Search</button>
 </div>
    </div>
    </form>
<div id="basicform" class="subcontent" style="padding-bottom:15px;">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
            <tr>
            	<th colspan="12" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA与直发总销售额合计</th>
            </tr>
              <tr bgcolor="#CCCCCC">
                <th height="20" bgcolor="#CCCCCC">订单类型</th>
                <th bgcolor="#CCCCCC">交易金额</th>
                <th  bgcolor="#CCCCCC">收入运费</th>
                <th  bgcolor="#CCCCCC">收入小计</th>
                <th bgcolor="#CCCCCC">商品成本</th>
                <th bgcolor="#CCCCCC">FBA费用/平台支出</th>
                <th bgcolor="#CCCCCC">头程/运费</th>
                <th bgcolor="#CCCCCC">支出小计</th>
                <th bgcolor="#CCCCCC">商品销量</th>
                <th bgcolor="#CCCCCC">订单数量</th>
                <th  bgcolor="#CCCCCC">利润</th>
                <th  bgcolor="#CCCCCC">毛利率</th>
             </tr>
            </thead>
              <tr> 
                <td align="center">总直发订单</td>
                <td align="center">{{$anal.allorderAmount}}</td>
                <td align="center">{{$anal.allshipping_fee}}</td>
                <td align="center">{{$anal.allorderAmount+$anal.allshipping_fee}}</td>
                <td align="center">{{$anal.allcosprice}}</td>
                <td align="center">{{$anal.allplatformfee}}</td>
                <td align="center">{{$anal.allfreight}}</td>
                <td align="center">{{$anal.allsubzhic}}</td>
                <td align="center">{{$anal.allnum}}</td>
                <td align="center">{{$anal.allorderNum}}</td>
                <td align="center">{{$anal.alllirun}}</td>
                <td align="center">{{$anal.alllirunlv}}%</td>
      </tr>
             <tr>
               <td height="20" align="center">总FBA订单</td>
               <td class="head1" align="center">{{$tal.goods_amount_total}}</td>
               <td class="head1" align="center">{{$tal.realfee}}</td>
               <td class="head1" align="center">{{$tal.i_total}}</td>
               <td class="head1" align="center">{{$tal.costprice_total}}</td>
               <td class="head1" align="center">{{$tal.payship_fee_total|abs}}</td>
               <td class="head1" align="center">{{$tal.ship_price_total}}</td>
               <td class="head1" align="center">{{$tal.costprice_total-$tal.payship_fee_total+$tal.ship_price_total}}</td>
               <td class="head1" align="center">{{$tal.goods_number_total}}</td>
               <td class="head1" align="center">{{$tal.order_total}}</td>
               <td class="head1" align="center">{{$tal.lirun}}</td>
               <td align="center">{{$tal.lirunlv}}%</td>
      		</tr>
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_amount_total+$anal.allorderAmount}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.realfee+$anal.allshipping_fee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.i_total+$anal.allorderAmount+$anal.allshipping_fee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.costprice_total+$anal.allcosprice}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{-$tal.payship_fee_total+$anal.allplatformfee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.ship_price_total+$anal.allfreight}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><b>{{$tal.costprice_total-$tal.payship_fee_total+$tal.ship_price_total+$anal.allsubzhic}}</b></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_number_total+$anal.allnum}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.order_total+$anal.allorderNum}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun+$anal.alllirun}}</B></font></td>
              <td align="center">{{$anal.avglirunlv}}%</td>
      </tr>
          </table>          
</div>
    <!--搜索栏结束-->  
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="table1">
            <thead>
                <tr valign="top" style="height:20px">
                    <th colspan="10" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA订单日销售统计</th>
                </tr>
              <tr>
                <th height="20">时间</th>
                <th>交易金额</th>
                <th>收入运费</th>
                <th>小计</th>
                <th>商品成本</th>
                <th>FBA费用</th>
                <th>头程</th>
                <th>利润</th>
                <th>商品销量</th>
                <th>订单数量</th>
              </tr>
            </thead>
          
             {{foreach from=$day_sales item=res key=key}}
             <tr {{if $key>9}}class="tr_more"{{/if}}>
               <td height="20" align="center">{{$res.dates}}</td>
               <td height="20" align="center">{{$res.goods_amount_total}}</td>
               <td height="20" align="center">{{$res.realfee}}</td>
               <td height="20" align="center">{{$res.goods_amount_total+$res.shipping_fee_total}}</td>
               <td height="20" align="center">{{$res.costprice_total}}</td>
               <td height="20" align="center">{{$res.payship_fee_total}}</td>
               <td align="center">{{$res.ship_price}}</td>
               <td align="center">{{$res.goods_amount_total+$res.realfee-$res.costprice_total+$res.payship_fee_total-$res.ship_price}}</td>
               <td height="20" align="center">{{$res.goods_number_total}}</td>
               <td height="20" align="center">{{$res.order_total}}</td>
             </tr>
            {{/foreach}}
            {{if $key>10}}
             <tr>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td align="center">...</td>
               <td align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center"><a href="javascript:showMoreInfo('table1')" class="funa">显示详细</a></td>
             </tr>
            {{/if}}
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_amount_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.realfee}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.i_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.costprice_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.payship_fee_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.ship_price_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.lirun}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.goods_number_total}}</B></font></td>
              <td class="head1" align="center"><font color="#FF0000"><B>{{$tal.order_total}}</B></font></td>
            </tr>
          </table>        
</div></div>

<div id="contentwrapper" class="contentwrapper">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="tabledaysale">
            <thead>
            <tr valign="top" style="height:20px">
                <th colspan="13" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">直发订单统计</th>
            </tr>
             <tr valign="top" style="height:20px">
  <td rowspan="2" bgcolor="#FFFFFF" style="vertical-align: middle;border: 1px solid #000000; text-align: center;">时间</td>
  <td colspan="3" bgcolor="#FFFFFF" style="vertical-align: middle;border: 1px solid #000000; text-align: center;">收入</td>
  <td colspan="5" bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">支出</td>
  <td rowspan="2" bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">商品销量</td>
  <td rowspan="2" bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">订单量</td>
   <td rowspan="2" bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">利润</td>
    <td rowspan="2" bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">毛利率</td>
</tr>
<tr valign="top" style="height:20px">
  <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">交易金额</td>
  <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">实收运费</td>
  <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">小计</td>
  <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">商品成本</td>
   <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">实付运费</td>
    <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">平台交易费</td>
     <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">收款交易费</td>
      <td bgcolor="#FFFFFF" style=" vertical-align: middle;border: 1px solid #000000; text-align: center;">小计</td>
</tr>
            </thead>
            <tbody>
            
           {{foreach from=$list item=res key=key}}
            <tr {{if $key>9}}class="tr_more"{{/if}}>
              <td class="head1" align="center">{{$res.orderDate}}</td>
              <td class="head0" align="center">{{$res.orderAmount}}</td>
              <td class="head1" align="center">{{$res.shipping_fee}}</td>
              <td class="head0" align="center">{{$res.subtotal}}</td>
              <td class="head1" align="center">{{$res.cosprice}}</td>
               <td class="head1" align="center">{{$res.freight}}</td>
              <td class="head1" align="center">{{$res.platformfee}}</td>
              <td class="head1" align="center">{{$res.payfee}}</td>
               <td class="head1" align="center">{{$res.subzhic}}</td>
              <td class="head0" align="center">{{$res.goodsnNum}}</td>
               <td class="head1" align="center">{{$res.orderNum}}</td>
                <td class="head0" align="center">{{$res.lirun}}</td>
                 <td class="head0" align="center">{{$res.maoliv}}</td>
               </tr>
            {{/foreach}}
            {{if $key>10}}
             <tr>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td align="center">...</td>
               <td align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center">...</td>
               <td height="20" align="center"><a href="javascript:showMoreInfo('tabledaysale')" class="funa">显示详细</a></td>
             </tr>
            {{/if}}
            <tr>
            <td class="head1" align="center"><B>合计</B></td>
            <td class="head0" align="center"><font color="#FF0000"><B>{{$saletotal["allorderAmount"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allshipping_fee"]}}</B></font></td>
            <td class="head0" align="center"><font color="#FF0000"><B>{{$saletotal["saleallsubtotal"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allcosprice"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allfreight"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allplatformfee"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allpayfee"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allsubzhic"]}}</B></font></td>
            
            <td class="head0" align="center"><font color="#FF0000"><B>{{$saletotal["allnum"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allorderNum"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["alllirun"]}}</B></font></td>
            <td class="head1" align="center"><font color="#FF0000"><B>{{$saletotal["allmaolv"]}}</B></font></td>
            </tr>
            </tbody>
          </table>
</div>

<div id="contentwrapper" class="contentwrapper">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable goodsdata" width="1600" id="table2">
  <thead>
<tr valign="top" style="height:20px">
<th colspan="11" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA热销商品</th>
</tr>
              <tr valign="top" class="tableheader">
      <td width="90"><b>商品编号</b></td>
      <td><b>名称</b></td>
      <td width="100" align="center" style="border-left:1px solid #000;"><b>交易金额(RMB)</b>        </td>
      <td width="80" align="center" style="border-left:1px solid #000;"><b>商品成本</b>        </td>
      <td width="80" align="center" style="border-left:1px solid #000;"><strong>FBA费用</strong></td>
      <td width="80" align="center" style="border-left:1px solid #000;"><strong>头程</strong>(RMB)</td>
      <td  width="82" style="border-left:1px solid #000;"><b>利润</b></td>
      <td><b>利润率(%)</b></td>
      <td><b>销售数量</b></td>
      <td><b>日均销量</b></td>
      </tr>
            </thead>
             {{foreach from=$goods_sales item=res key=key}}
             <tr {{if $key>9}}class="tr_more"{{/if}}>
              <td class="head1" align="center"><a href="/product/productlist?filtertype=skuc&other={{$res.productid}}" target="_blank">{{$res.productid}}</a></td>
               <td class="head0" align="center" title="{{$res.goods_name}}">{{$res.goods_name|getstr:24:0}}</td>
              <td class="head1" align="center" style="border-left:1px solid #000;">{{$res.goods_amount_total}}</td>
                <td class="head1" align="center" style="border-left:1px solid #000;">{{$res.costprice_total}}</td>
                <td class="head1" align="center" style="border-left:1px solid #000;">{{$res.payship_fee_total}}</td>
                <td class="head1" align="center" style="border-left:1px solid #000;">{{$res.firstshipment_fre}}</td>
               <td class="head0" align="center" style="border-left:1px solid #000;">
                {{$res.lirun}}</td>
               <td class="head0" align="center">{{$res.maoliv}}%</td>
                <td class="head1" align="center">{{$res.sell_total}}</td>
                <td class="head1" align="center">{{$res.day_sales}}</td>
               </tr>
            {{/foreach}}
            {{if $key>10}}
             <tr>
               <td class="head1" align="center">...</td>
               <td class="head0" align="center" title="{{$res.goods_name}}">...</td>
               <td class="head1" align="center" style="border-left:1px solid #000;">...</td>
               <td class="head1" align="center" style="border-left:1px solid #000;">...</td>
               <td class="head1" align="center" style="border-left:1px solid #000;">...</td>
               <td class="head1" align="center" style="border-left:1px solid #000;">...</td>
               <td class="head0" align="center" style="border-left:1px solid #000;">...</td>
               <td class="head0" align="center">...</td>
               <td class="head1" align="center">...</td>
               <td class="head1" align="center"><a href="javascript:showMoreInfo('table2')" class="funa">显示详细</a></td>
               </tr>
            {{/if}}
             <tr>
               <td align="center" class="head1"><strong>合计：</strong></td>
               <td align="center" class="head0" title="{{$res.goods_name}}">&nbsp;</td>
               <td align="center" class="redstyle">{{$data_total.goods_amount_total}}</td>
               <td align="center" class="redstyle" >{{$data_total.costprice_total}}</td>
               <td align="center" class="redstyle" >{{$data_total.ship_fba_pay}}</td>
               <td align="center" class="redstyle" >{{$data_total.firstshipment_fre}}</td>
               <td align="center" class="redstyle">{{$data_total.maoli_total}}</td>
               <td align="center" class="redstyle">{{$data_total.all_lirunlv}}%</td>
               <td align="center" class="redstyle"><span class="STYLE2"><strong>{{$data_total.sell_total}}</strong></span></td>
               <td align="center" class="redstyle"><span class="STYLE2"><strong>{{$data_total.day_sales}}</strong></span></td>
    </tr>
          </table>
</div>

<div id="contentwrapper" class="contentwrapper">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="table3">
<thead>
  <tr valign="top" style="height:20px">
<th colspan="5" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA店铺退款统计</th>
</tr>
<tr valign="top" style="height:20px">
  <th height="20">店铺</th>
  <th height="20">退款笔数/占比</th>
  <th height="20" align="center">退款金额/占比</th>
  <th height="20" align="center">总交易笔数</th>
  <th height="20" align="center">总交易金额</th>
  </tr>
</thead>

 {{foreach from=$shop_refundlist item=res key=key}}
<tr {{if $key>9}}class="tr_more"{{/if}}>
  <td  align="center">{{$res.shopname}}[FBA]</td>
  <td  align="center">{{$res.order_num}}/{{$res.num_mod}}%</td>
  <td  align="center">{{$res.refund_total}}/{{$res.amount_mod}}%</td>
  <td  align="center">{{$res.all_order_num}}</td>
  <td  align="center">{{$res.amount_total}}</td>
</tr>
{{/foreach}}
{{foreach from=$order_refundlist item=res key=index}}
<tr {{if $key+$index>9}}class="tr_more"{{/if}}>
  <td  align="center">{{$res.shopname}}[直发]</td>
  <td  align="center">{{$res.order_num}}/{{$res.num_mod}}%</td>
  <td  align="center">{{$res.goods_amount_total}}/{{$res.amount_mod}}%</td>
  <td  align="center">{{$res.all_order_num}}</td>
  <td  align="center">{{$res.amount_total}}</td>
</tr>
{{/foreach}}
{{if $key>9}}
<tr>
  <td  align="center">...</td>
  <td  align="center">...</td>
  <td  align="center">...</td>
  <td  align="center">...</td>
  <td  align="center"><a href="javascript:showMoreInfo('table3')" class="funa">显示详细</a></td>
</tr>
{{/if}}
<tr>
<td class="head1" align="center"><B>FBA退款统计</B></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$refund_num}}/{{$refund_num_mod}}%</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$refund_num_money}}/{{$refund_num_money_mod}}%</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$allsubtotal}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$allcosprice}}</B></font></td>
</tr>
<tr>
<td class="head1" align="center"><B>直发退款统计</B></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$order_refund.refund_num}}/{{$order_refund.refund_num_mod}}%</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$order_refund.refund_num_money}}/{{$order_refund.refund_num_money_mod}}%</B></font></td>
<td class="head0" align="center"><font color="#FF0000"><B>{{$order_refund.allsubtotal}}</B></font></td>
<td class="head1" align="center"><font color="#FF0000"><B>{{$order_refund.allcosprice}}</B></font></td>
</tr>
</table>
</div>
<div id="contentwrapper" class="contentwrapper">

<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="table4">     
    <thead>
<tr valign="top" style="height:20px">
<th colspan="5" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">FBA店铺库存合计</th>
</tr>
      <tr valign="top" class="tableheader">
        <th>NO.</th>
<th align="right">商品编号</th>
<th><b>名称</b></th>
<th align="center">总库存数</th>
<th align="center"><b>总成本价值</b></th>
</tr>
    </thead>
  
     {{foreach from=$store_list item=res key=key}}
     <tr {{if $key>9}}class="tr_more"{{/if}}>
       <td class="head1" align="center">{{$key+1}}</td>
      <td class="head1" align="center"><a href="/product/productlist?filtertype=skuc&other={{$res.sku}}" target="_blank">{{$res.sku}}</a></td>
        <td class="head0" align="center" title="{{$res.goods_name}}">{{$res.goods_name|getstr:20:0}}</td>
      <td class="head1" align="center">{{$res.Quantity_num}}</td>
       <td class="head1" align="center">{{$res.costprice_num}}</td>
    </tr>
    {{/foreach}}
    {{if $key>9}}
     <tr>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center"><a href="javascript:showMoreInfo('table4')" class="funa">显示详细</a></td>
     </tr>
     {{/if}}
     <tr>
       <td align="center" class="head1"><strong>合计：</strong></td>
       <td align="center" class="head1">&nbsp;</td>
       <td align="center" class="head0" title="{{$res.goods_name}}">&nbsp;</td>
       <td align="center" class="redstyle"><span class="STYLE1">{{$total_stock}}</span></td>
       <td align="center" class="redstyle" ><span class="STYLE1">{{$total_costprice}}</span></td>
    </tr>
  </table>
</div>

<div id="contentwrapper" class="contentwrapper">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="table5">     
    <thead>
<tr valign="top" style="height:20px">
<th colspan="5" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">其它仓库存</th>
</tr>
      <tr valign="top" class="tableheader">
        <th>NO.</th>
<th align="right">商品编号</th>
<th><b>名称</b></th>
<th align="center">总库存数</th>
<th align="center"><b>总成本价值</b></th>
</tr>
    </thead>
  
     {{foreach from=$other_store_list item=res key=key}}
     <tr {{if $key>9}}class="tr_more"{{/if}}>
       <td class="head1" align="center">{{$key+1}}</td>
      <td class="head1" align="center"><a href="/product/productlist?filtertype=skuc&other={{$res.goods_sku}}" target="_blank">{{$res.goods_sku}}</a></td>
       <td class="head0" align="center" title="{{$res.goods_name}}">{{$res.goods_name|getstr:20:0}}</td>
      <td class="head1" align="center">{{$res.Quantity_num}}</td>
       <td class="head1" align="center">{{$res.made_price}}</td>
    </tr>
    {{/foreach}}
    {{if $key>9}}
     <tr>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center">...</td>
       <td height="20" align="center"><a href="javascript:showMoreInfo('table5')" class="funa">显示详细</a></td>
     </tr>
     {{/if}}
     <tr>
       <td align="center" class="head1"><strong>合计：</strong></td>
       <td align="center" class="head1">&nbsp;</td>
       <td align="center" class="head0" title="{{$res.goods_name}}">&nbsp;</td>
       <td align="center" class="redstyle"><span class="STYLE1">{{$other_total_stock}}</span></td>
       <td align="center" class="redstyle" ><span class="STYLE1">{{$other_total_costprice}}</span></td>
    </tr>
  </table>
</div>
<div id="contentwrapper" class="contentwrapper">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" width="100%" id="table8">
  <thead>
    <tr valign="top" style="height:20px">
    	<th colspan="13" style=" vertical-align: middle;background-color: #CCCCCC; border: 1px solid #000000; text-align: center;">运输计划</th>
    </tr>
    <tr>
      <th class="head0">运输计划编号</th>
      <th class="head0">状态</th>
      <th class="head0">始发地</th>
      <th class="head0">目的地</th>
      <th class="head0">店铺</th>
   
      <th class="head0">运输方式</th>
      <th class="head0">承运人</th>
      <th class="head0">SKU数</th>
      <th class="head0">总数量</th>
      <th class="head0">商品成本</th>
      <th class="head0">经办人</th>
      <th class="head0">创建时间</th>
    </tr>
  </thead>
  <tbody>
  
  {{foreach from=$overseadeliver item=li key=key}}
  <tr {{if $key>9}}class="tr_more"{{/if}}>
    <td><a href="/oversea/showplandetail/{{$li.id}}" target="_blank">{{$li.groupid}}</a></td>
    <td> {{if $li.status==1}} 新创建{{/if}}
      {{if $li.status==2}} 一审通过{{/if}}
      {{if $li.status==22}} 一审不通过{{/if}}
      {{if $li.status==3}} 二审通过{{/if}}
      {{if $li.status==33}} 二审不通过{{/if}}
      {{if $li.status==4}}已封箱{{/if}}
      {{if $li.status==5}}运输完成{{/if}}
      {{if $li.status==6}}取消计划{{/if}}
      {{if $li.status==7}}待上传{{/if}}
      {{if $li.status==8}}已发运{{/if}} </td>
    <td>{{$li.startingplace}}</td>
    <td>{{$li.destination}}</td>
    <td class="center">
   
        {{$li.shopname}}    </td>
  
    <td class="center">{{$li.transportmode}}</td>
    <td class="center">{{$li.carrier}}</td>
    <td class="center">{{$li.skunum}}</td>
    <td class="center">{{$li.totalnum}}</td>
    <td class="center">{{$li.totalamount}}</td>
    <td class="center">{{$li.createoper}}</td>
      <td class="center">{{$li.createtime}}</td>
  </tr>
  {{/foreach}}
    {{if $key>10}}
     <tr>
       <td class="head1" align="center">...</td>
       <td class="head0" align="center" title="{{$res.goods_name}}">...</td>
       <td class="head0" align="center">...</td>
       <td class="head1" align="center">...</td>
       <td class="head0" align="center">...</td>
       <td class="head1" align="center">...</td>
       <td class="head0" align="center">...</td>
       <td class="head1" align="center">...</td>
       <td class="head1" align="center">...</td>
       <td class="head0" align="center">...</td>
       <td class="head1" align="center">...</td>
       <td class="head1" align="center"><a href="javascript:showMoreInfo('table8')" class="funa">显示详细</a></td>
       </tr>
    {{/if}}
    <tr>
    <td class="head1" align="center"><B>合计</B></td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center"><font color="#FF0000"><B>{{$overseatal.skus}}</B></font></td>
      <td class="head1" align="center"><font color="#FF0000"><B>{{$overseatal.quantity_num}}</B></font></td>
      <td class="head1" align="center"><font color="#FF0000"><B>{{$overseatal.costprices}}</B></font></td>
      <td class="head1" align="center">&nbsp;</td>
      <td class="head1" align="center">&nbsp;</td>
    </tr>
    </tbody>
</table>
</div>
<div style="position:absolute;z-index:999;top:105px;border:1px solid #666;left:220px;width:870px;background:#f5f5f5;padding:6px 10px;height:450px;margin-bottom:40px;display:none;" id="ajax_box">
<div style="padding-top:8px;padding-left:12px;height:28px;"><h4 style="float:left">选择要搜索的店铺</h4><span style="float:right">
  <input type="button" name="button" id="button" onClick="setShopInfo()" value="确定选择">&nbsp;&nbsp;
  <input type="button" value="关闭弹层" onClick="closeShowBox()">
</span></div>
<hr>
<div id="shop_box" style="height:400px;overflow:auto"></div>
</div>
<script type="text/javascript" src="/fuman/js/report.js"></script>
</body>
</html>